import { Button } from "antd";
import { useDevToolsStore } from "@/store/middle/devTools";

// 中间件
const MiddleDemo1: React.FC = () => {
  const { count, increment } = useDevToolsStore();
  return (
    <div>
      <h1>中间件deevTool </h1>
      <p> count: {count} </p>
      <Button onClick={increment}> cout++ </Button>
    </div>
  );
};

export default MiddleDemo1;
